<#macro select id datas value="" key="" text="">
   <select id="${id}" name="${id}">
      <option>---请选择---</option>
      <#list datas as data>
        <#if key!="">
          <#if value == data[key]?string>
         	<option value="${data[key]}" selected>${data[text]}</option>
          <#else>
           <option value="${data[key]}">${data[text]}</option>
         </#if>
        <#else>
          <#if value == data>
         	<option value="${data}" selected>${data}</option>
         <#else>
         <option value="${data}">${data}</option>
        </#if>
       </#if> 
      </#list>
   </select>
</#macro>

<#macro drawOptionJsObject options=[]>{<#list options as option>"${option.value}":"${option.text}"<#if option_has_next>,</#if></#list>}</#macro>
